package com.dwxt.race.dao;

import com.dwxt.race.entity.UserRace;
import com.dwxt.race.entity.UserRaceExample;
import java.util.List;

import com.dwxt.race.entity.vo.UserRaceVo;
import org.apache.ibatis.annotations.Param;

public interface UserRaceMapper {
    int countByExample(UserRaceExample example);

    int deleteByExample(UserRaceExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserRace record);

    int insertSelective(UserRace record);

    List<UserRace> selectByExample(UserRaceExample example);

    UserRace selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserRace record, @Param("example") UserRaceExample example);

    int updateByExample(@Param("record") UserRace record, @Param("example") UserRaceExample example);

    int updateByPrimaryKeySelective(UserRace record);

    int updateByPrimaryKey(UserRace record);

    //待参赛
    List<UserRaceVo> selectPrepareRace(String userId);
    //历史赛事
    List<UserRaceVo> selectHistoryRace(String userId);
    //我的赛事
    List<UserRaceVo> selectUserAndRace(String userId);

    UserRaceVo selectRaceEnterById(Integer id);
}